﻿using System.Data;
using Migrator.Framework;


namespace Wayloop.Blog.DataAccess.Migrations
{
    // ReSharper disable InconsistentNaming
    [Migration(200905160015)]
    public class _200905160015_AlterComment : Migration
    {
        private const string TableName = "Comment";


        public override void Up()
        {
            Database.RemoveColumn(TableName, "IsVisible");
            Database.AddColumn(TableName, new Column("Status", DbType.Int32, ColumnProperty.NotNull, 1));
        }


        public override void Down()
        {
            Database.RemoveColumn(TableName, "Status");
            Database.AddColumn(TableName, new Column("IsVisible", DbType.Boolean, ColumnProperty.NotNull, true));
        }
    }
}